from fastapi import FastAPI, APIRouter
from api import init_router
from core import fva  

def init_app() ->FastAPI:
     fva.logger.info("开始初始化路由")
     application = FastAPI()
     fva.app = application
     init_router(application)
     return application